@prefix-cls: ~'inbiz-TreeSelect';

.@{prefix-cls} {
  font-size: var(--inbiz-font-size-base);

  &-node-title {
    display: inline-flex;
    align-items: center;

    &-icon {
      margin-right: 5px;
    }

    &-space {
      width: calc(3 * var(--inbiz-font-size-base));
    }

    &-opts {
      display: none;

      &-hover {
        display: flex;
        align-items: center;
      }

      &-item {
        margin-right: 10px;
      }
    }
  }
  .ant-select-tree-node-selected,
  .ant-select-tree-node-content-wrapper:hover {
    background-color: inherit !important;
  }
  .ant-select-tree-treenode-selected {
    background-color: var(--ant-primary-2) !important;
  }
  .ant-select-tree-treenode:hover {
    background-color: #f5f5f5;
  }

  .ant-select-tree-treenode {
    align-items: center !important;
    padding: 2px 0 !important;

    .ant-select-tree-checkbox {
      margin: 0 8px 0 0;
    }
  }

  .ant-select-tree-iconEle {
    margin-right: 1px;
    img {
      display: block;
      width: 20px !important;
      height: 20px !important;
      margin-top: 2px;
    }
  }

  .ant-select-tree-switcher-noop::before {
    display: block;
    width: 8px;
    height: 8px;
    margin: 8px 0 0 7px;
    border: 2px solid #aaa;
    border-radius: 50%;
    content: '';
  }
  .ant-select-tree-switcher {
    width: 20px;
  }
  .ant-select-tree-node-content-wrapper {
    padding-left: 0 !important;
  }
}
